<!DOCTYPE html>
<%@page import="ansi.modelo.Queja"%>
<%@page import="java.util.Collection"%>
<html lang="en">
	<jsp:include page="cabeceraHead.jsp"></jsp:include>
<body>
	<jsp:include page="cabeceraMenu.jsp"></jsp:include>
	
	<div class="container">
	<p><strong>Mantenimiento de Quejas &nbsp; - Buscar</strong></p>

<form id="form1" name="form1" method="post" action="QuejaListarServlet">
  <p>Buscar: 
    <label>
    <input type="text" name="txtbuscar"/>
    </label>
    <label>
    <input type="submit" name="btnBuscar" value="Buscar" />
    </label>
    <label>
    <input type="button" name="btnNuevo" value="Nuevo" onclick="window.location='QuejasNuevoServlet' "  />
    </label>
  </p>

	<table width="550" height="65" border="1" cellpadding="0"
		cellspacing="0">
		<tr>
			<th width="49" scope="col" style="width: 71px;">ID Queja</th>
			<th width="192" scope="col" style="width: 164px;">Tipo de queja</th>
			<th width="107" scope="col">Motivo</th>
			<th width="192" scope="col">Fecha</th>
			<th width="192" scope="col">DNI Residente</th>
		</tr>
		<%
		Collection<Queja> listResidente	= (Collection<Queja>)request.getAttribute("listResidente");
		if(listResidente != null) {
			for(Queja residente:listResidente) { %>
			<td><%=residente.getIdQueja() %>"></td>
			<td><%=residente.getTipo_Queja() %></td>
			<td><%=residente.getMotivo_Queja() %></td>
			<td><%=residente.getFecha_QuejaStr() %></td>
			<td><%=residente.getResidente_DNI_Residente() %></td>
		<%}}%>
<%-- 		<%quejaList %> --%>
 </table>
  <%
	if(request.getAttribute("MENSAJE") != null) {
		out.print(request.getAttribute("MENSAJE"));
	}
	%>
	<br/>
	</form>
	 <!-- Site footer -->
	   <div class="footer" align="center">
	   	 <p>&nbsp;</p>
	   	
	     <p>Grupo ANSI &copy; </p>
	   </div>
	   
	 </div> <!-- /container -->
	 
	  <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    
     <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!--     <script src="js/jquery-1.10.2.js"></script> -->
    <!-- Include all compiled plugins (below), or include individual files as needed -->
<!--     <script src="js/bootstrap.js"></script> -->
</body>
</html>